{% extends "base_site.html" %}
{% load static %}

{% block title %}Rolodex - Search{% endblock %}

{% block extrahead %}{{ block.super }}
    <script src="{% static 'secr/js/utils.js' %}"></script>
{% endblock %}

{% block breadcrumbs %}{{ block.super }}
    &raquo; Rolodex
{% endblock %}

{% block content %}
    <div class="module">
        <h2>Rolodex - Search <span class="unlocked"><a href="add/" class="addlink">Add</a></span></h2>
        <form id="rolodex-search-form" action="." method="post">{% csrf_token %}
            <table class="full-width amstable">
                <tbody>
                <!-- [html-validate-disable-block wcag/h63 -- FIXME: as_table renders without scope] -->
                {{ form.as_table }}
                </tbody>
            </table>

            {% include "includes/buttons_search.html" %}
        </form>

    </div> <!-- module -->

    <div class="module">
        <h2>Search Results</h2>

        {% include "includes/search_results_table.html" %}
        {% if not_found %}{{ not_found }}{% endif %}

    </div> <!-- module -->
{% endblock %}
